package conlon.rocketmq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author conlon
 * @since 2021-08-20
 */
@Data
@Accessors(chain = true)
@TableName("i8t_local_transaction")
public class I8tLocalTransactionEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 唯一键
     */
    @NotBlank(message = "唯一键不能为空")
    private String uniqKey;


    /**
     * 发送时间
     */
    @NotNull(message = "发送时间不能为空")
    private LocalDateTime sendTime;


    /**
     * 截止时间
     */
    @NotNull(message = "截止时间不能为空")
    private LocalDateTime deadline;


}